
// ViewYourImageView.h : interface of the CViewYourImageView class
//

#pragma once

#include "resource.h"
#include "CViewImageControl.h"
#include "CTopViewImageControl.h"
#include "CPictureCommon.h"
#include "ViewYourImageDoc.h"
#include <GdiPlus.h>

class CViewYourImageView : public CFormView
{

	GdiplusStartupInput gdiplusStartupInput;
	ULONG_PTR gdiplusToken;
protected: // create from serialization only
	CViewYourImageView();
	DECLARE_DYNCREATE(CViewYourImageView)

public:
	enum{ IDD = IDD_VIEWYOURIMAGE_FORM };

// Attributes
public:
	CViewYourImageDoc* GetDocument() const;
private:
	CViewImageControl *m_pCViewControl;
public:
	void ShowBigPicture();
	//CImageControl	*m_pBigImageControl;
public:
	CPictureCommon	*m_pBigImageControl;

	void CreateGroupViewImage();
// Operations
public:

// Overrides
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct

// Implementation
public:
	virtual ~CViewYourImageView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	afx_msg void OnFilePrintPreview();
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
};

#ifndef _DEBUG  // debug version in ViewYourImageView.cpp
inline CViewYourImageDoc* CViewYourImageView::GetDocument() const
   { return reinterpret_cast<CViewYourImageDoc*>(m_pDocument); }
#endif

